export const rules = {
  username: [
    {
      required: true,
      message: "用户名是必传内容",
    },
    {
      pattern: /^[a-z0-9]{5,10}$/g,
      message: "用户名必须是5-10个数字或者字母",
      trigger: "blur",
    },
  ],
  password: [
    {
      required: true,
      message: "密码是必传内容",
    },
    {
      pattern: /^[a-z0-9]{3,10}$/g,
      message: "密码必须是3个以上数字或者字母",
      trigger: "blur",
    },
  ],
  vertifyCode:[
    {
      required: true,
      pattern: /^[a-zA-Z0-9]{4}$/,
      message: '验证码是必填内容,且为4位'
    }
  ]
}